#ifndef INC_CYLINDER_H_
#define INC_CYLINDER_H_

#include "raytracer.h"


class CCylinder  : public CRTObject
{
public:
	SCALAR rad;
	SCALAR height;
	VECTOR loc;

	CCylinder(SCALAR r, SCALAR h, VECTOR &loc);
	~CCylinder(void);

	bool hits (const CLine &line, SCALAR &t_hit);
	 VECTOR getNormal (const VECTOR &aloc);
};
#endif